package scsc.web.oa.carmgr.data;

import scsc.pub.data.CarManage;
import scsc.pub.tools.StringUtil;
import java.io.Serializable;

public class SysCarManageData extends CarManage
implements Serializable{
	private String upCarName;
    public static final String upCarNameDB = "UPCARNAME";
    private String linkCarName;
    public static final String linkCarNameDB = "LINKCARNAME";
    private String branchName;
    public static final String branchNameDB = "BRANCHNAME";
    private String regionName;
    public static final String regionNameDB = "REGIONNAME";

    public SysCarManageData()
    {
        init();
    }

    public SysCarManageData(int carBrand,String carType,String driver,String state)
    {
      setCarBrand(null);
      setCarType(carType);
      setDriver(driver);
      setState(state);
      
    }
    public String getUpCarName()
    {
        return upCarName;
    }

    public void setUpDeptName(String upCarName)
    {
        this.upCarName = StringUtil.trim(upCarName);
    }

    public String getLinkCarName()
    {
        return linkCarName;
    }

    public void setLinkCarName(String linkCarName)
    {
        this.linkCarName = StringUtil.trim(linkCarName);
    }

    public void reset()
    {
        init();
    }

    public void init()
    {
    	setCarBrand("");
		setCarId(null);
		setCarType("");
		setDriver("");
		setEngineModel("");
		setFactoryModel("");
		setLatestDate("");
		setPrice(null);
		setPurchaseDate("");
		setRemark("");
		setState("");
		setUserId("");
    }

    public String getBranchName()
    {
        return branchName;
    }

    public String getRegionName()
    {
        return regionName;
    }

    public void setBranchName(String string)
    {
        branchName = string;
    }

    public void setRegionName(String string)
    {
        regionName = string;
    }
}
